home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / set_limits < prev    next >
Text File  |  1999-07-30  |  1KB  |  40 lines

  1. PRELIMINARY
  2. SYNOPSIS
  3.  
  4.         #include <rtlimits.h>
  5.  
  6.         void set_limits(int tag, int value, ...)
  7.         void set_limits(int * limits)
  8.  
  9. DESCRIPTION
  10.         Set the default runtime limits from the given arguments. The new
  11.         limits will be in effect as the initial 'max limits' with the 
  12.         next execution thread.
  13.  
  14.         The arguments can be given in two ways: as an array (like the one
  15.         returned from query_limits(), or as a list of tagged values.
  16.         The limit settings recognize two special values:
  17.  
  18.             LIMIT_UNLIMITED: the limit is deactivated
  19.             LIMIT_KEEP:      the former setting is kept
  20.  
  21.         The efun causes a privilege violation ("set_limits", current_object,
  22.         first
  23.  
  24. EXAMPLES
  25.         set_limits( ({ 200000 }) )
  26.         set_limits( LIMIT_EVAL, 200000 )
  27.           --> set new default eval_cost limit to 200000
  28.           
  29.         set_limits( ({ LIMIT_UNLIMITED, LIMIT_KEEP, 5000 }) )
  30.         set_limits( LIMIT_EVAL, LIMIT_UNLIMITED, LIMIT_ARRAY, LIMIT_KEEP,
  31.                     LIMIT_MAPPING, 5000 )
  32.           --> set new eval_cost limit to unlimited, keep the current
  33.               array size limit, and limit mapping sizes to 5000.
  34.  
  35. HISTORY
  36.         Introduced in LDMud 3.2.7.
  37.  
  38. SEE ALSO
  39.         limited(E), query_limits(E)
  40.